$(document).ready(function(){
	$( "#buscador" ).submit(function( event ) {

		alert( $( this ).serialize() );
		event.preventDefault();
		$(this).submitRegistrationForm($( this ).serialize());
	});

	$("a").click(function(event) {
		$(this).submitRegistrationForm(event.target.id);

	});

	jQuery.fn.submitRegistrationForm = function(busqueda) {
	// action is functionality we want to call and outputJSON is our data
    window.location.href = "resultado.html?" + busqueda;  
        
	}  
        
});